﻿<Window x:Class="LeoK.TM.QuickTaskWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:LeoK.TM"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d" 
        WindowStyle="None"
        AllowDrop="False"
        FontFamily="SimSun" FontSize="14"
        Title="QuickTaskWindow" Height="400" Width="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <StackPanel Height="40" Orientation="Horizontal">
            <Image Source="/Resources/btnTimer.ico" Width="30" Height="30" Margin="10,0" />
            <TextBlock Width="150" VerticalAlignment="Center" HorizontalAlignment="Center" Text="00:00:00" FontSize="32" Foreground="IndianRed"  x:Name="tbTimeSpan" Margin="10, 0"/>
            <Image Source="/Resources/btnPlay.ico" x:Name="imgPlay" Width="30" Height="30" Margin="120,0,0,0" Cursor="Hand" PreviewMouseLeftButtonUp="ImgPlay_OnPreviewMouseLeftButtonUp" />
        </StackPanel>

        <telerik:RadTabControl x:Name="radTab" Grid.Row="2">
            <telerik:RadTabItem Header="任务" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <telerik:RadWatermarkTextBox Height="30" WatermarkContent="新增任务" x:Name="tbTask" KeyDown="TbTask_OnKeyDown" />
                    <ListBox Grid.Row="1" x:Name="lstBox">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="1">
                                    <TextBlock Text="{Binding Name}" FontSize="14" VerticalAlignment="Center"/>
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </telerik:RadTabItem>
            <telerik:RadTabItem Header="时间线" >
                
            </telerik:RadTabItem>
        </telerik:RadTabControl>
    </Grid>
</Window>
